<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title></title>
    <%@include file="/common/header.jspf"%>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/common/dictionaryPaths.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/common/base.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/supplies/base.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/supplies/outStock.js"></script>
    <script>

        $(function () {
            var $inventoryVal = '${supplies.inventory}';
            $('#number').numberspinner({
                min:1,
                max:parseInt($inventoryVal),
                required:true,
                onChange: function (newValue, oldValue) {

                    $('#inventory').numberspinner('setValue',parseInt($inventoryVal-newValue));
                }
            })
        })
    </script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<div class="information">
    <form id="submit_form" method="post">
        <input type="hidden" value="${supplies.id}" name="emergencySuppliesId">
        <div class="information-title">
            <p>入库信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">物资名称:</label>
                    <input type="text" class="easyui-textbox" data-options="readonly:true" value="${supplies.name}"  style="width: 240px;" title="">
                </div>
                <div class="form_one">
                    <label class="lable-style">库存量(${supplies.measurementUnit}):</label>
                    <input type="text" class="easyui-numberspinner" data-options="readonly:true" id="inventory"  name="inventory" value="${supplies.inventory}" style="width: 240px;">
                </div>

            </div>
            <div style="clear: both">

                <div class="form_one">
                    <label class="lable-style">出库数量(${supplies.measurementUnit}):</label>
                    <input type="text" class="easyui-numberspinner"  id="number"  name="number"    style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">领用人:</label>
                    <input type="text" class="easyui-textbox" id="chargePersonName" data-options="editable:false,required:true"  style="width: 240px;"   title="">
                    <input type="hidden" name="userId" id="chargePersonId">
                </div>

            </div>


        </div>



    </form>

</div>

</body>
</html>
